package com.dotndot.view.list;

import com.dotndot.view.list.layout.*;

import android.content.Context;
import android.widget.RelativeLayout;

public class BasicListLayoutFactory
{

    public static BasicListLayout create( Context context, BasicListItem item )
    {
        int type = item.getType();
        switch( type )
        {
            case BasicListItem.BABY_LIST_TYPE:
                return new BabyLayout(context, item);

            case BasicListItem.STORY_LIST_TYPE:
                return new StoryLayout(context, item);

        }
        return null;
    }
}
